home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Night Owl 6
/
Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso
/
033a
/
dodir.zip
/
DODIR.DOC
< prev
next >
Wrap
Text File
|
1991-12-31
|
4KB
|
80 lines
DODIR [X]
Where x is any number of PCB type dirs that you wish to process.
Reason for this program:
I want to convert from ZIPs to ARJs by doing part in each nights
event. Doing it by subdirs in the DLPATH.LST is a possibility but
I don't want it to run quite that long an event each night (60-meg
typical subdir) so I decided to have it do it by DIR## and also
convert the file info to the updated file extension and size.
COPYRIGHT 1991 by Ken Prevo--ALL RIGHTS RESERVED
NO PERSON MAY CHARGE ANYTHING FOR THIS PROGRAM.
NO PERSON MAY CHARGE _ANYTHING_ FOR THIS PROGRAM'S DISTRIBUTION.
THERE IS NO CHARGE FOR THIS PROGRAM TO THE END USERS.
THIS PROGRAM DOES NOT COME WITH ANY WARRANTY OF ANY KIND.
THE AUTHOR IS THE GRATUITOUS VENDOR OF THIS PROGRAM, BUT RETAINS ALL COPYRIGHTS.
NO WARRANTY EXPRESSED OR IMPLIED--RECOVERY LIMITED TO COST OF PROGRAM--SEE ABOVE
WARNING: We can often think we've got it set up just right then...
I suggest you make up a subdir that has a single dir in GEN
and an added subdir called FILES or whatever that has file
listed in GEN. Point to that one file area with you DLPATH.LST
and make sure it all works for you with your program and under
your circumstances.
DODIR is a simple program to rebuild a directory converting files along the
way. It is written using BASCOM 7 and the PDQ library. If you don't have
these, the program will be a bit difficult to recompile to equivelent status.
I used the file conversion program found in AC150A.ZIP. It is a program
that makes a conversion from any file format to another. It was laziness
on my part. Maybe I should have gone ahead and done it right as he's one of
those that wants money for a kinda simple program that isn't too special
even if it's very nicely written. Anyway, sending him $10 is up to you...
If you have the compiler and library, you may wish to recompile with your own
defaults. If you don't have that luxury, you can set environment variables
to control program activity. The environment variables and defaults are:
TESTING=0 ; -1 allows processing the dir but not converting the file or
; rewriting the new extension or size. just a quick check to
; see that it is what you want and also cycle through a directory
; to provide probable validation for the rest and file existance
PCBPath=GEN\DLPATH.LST ;standard path under \PCB
PCBArchiver=.ZIP ;convert from ZIPs (don't forget period)
ACCmd= ACNV /J /C ;parameter/command to pass before file name
PCBNewArc=.ARJ ;what the new file extension will be after
;use a file name when running from event
PCBLOG=SCRN: ;where to output the results/progress
BYPASS=01-31-91 ;if this string is found in the line the
;conversion won't take place. You use it
;when you have a unique character that
;indicates the file is on a CD.
Note: if you have files with the default BYPASS date above and don't
want them bypassed, you'll need to set a unique string that can't
be matched in any directory. EG. BYPASS=__-__SHAZAM or a ctrlcode
or graphic character or whatever...
See the program for detailed usage of environment variables. If you are
converting from ZIP to ARJ and PCB is standard filenames, you should be
able to forget about all or most of the above.
Error Messages:
- Error: ## -- error while parsing revised filesize
Shouldn't happen, but...
File not found -- check environment setting or command line info
You need to establish which file isn't being found and correct
the situation before rerunning.
New DIR doesn't match old DIR size--check it out
Something may have happened. The two original and new file should
still show an identical size. Possible program error or
-1 for filesize in the new DIR## indicates a problem. You can rebuild
the file sizes using program from my PCBMAINT.ZIP collection.
IF file sizes match, the backup is deleted so you might want to backup
the DIRS before you embark on this trek. Belt and suspender operating
leads to few disapointments.
Another fine mess from: Toolkit BBS 219-696-3415 HST DUAL STD
Ken Prevo, Proprietor